import request from '@/utils/request'
//  关系总数
export const getRelationTotal = params => {
  return request({
    url: '/Relation/relation-total',
    method: 'get',
    params: params || {}
  })
}
//  关系列表
export const getRelationList = params => {
  return request({
    url: '/Relation/relation-list',
    method: 'get',
    params: params || {}
  })
}
//  学校列表
export const getSupplierUser = params => {
  return request({
    url: '/Merchant/merchant-list',
    method: 'get',
    params: params || {}
  })
}
//  添加或修改供应商关系
export const changeRelationModify = data => {
  return request({
    url: '/Relation/relation-modify',
    method: 'post',
    data: data || {}
  })
}
//  查看关系
export const getSupplierInfo = params => {
  return request({
    url: '/Relation/relation-details',
    method: 'get',
    params: params || {}
  })
}